#!/bin/bash

source /etc/os-release

OS_NAME=$(echo ${NAME} | tr '[:upper:]' '[:lower:]')
#OS_ID=$(echo ${ID} | tr '[:upper:]' '[:lower:]')

case ${OS_NAME} in
*ubuntu*)
  sudo apt install -y make gcc libssl-dev libcurl4-nss-dev
  ;;
*anolis*)
  sudo yum install -y make gcc openssl-devel libcurl-devel
  ;;
*)
  echo "Unsupported OS ${OS_ID}" ; exit 1
  ;;
esac

make
